<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>美福环球 - 客户登录</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css">
    <style>
        /* 所有样式已在index_html.html中定义，这里仅包含特定于登录页面的逻辑 */
        /* 完整样式请参考index_html.html中的style标签 */
    </style>
</head>
<body>
    <div class="login">
        <div class="login-container">
            <h1 class="login-title">客户信息管理系统</h1>
            
            <form class="login-form" id="login-form">
                <div id="login-error" class="login-error" style="display: none;"></div>
                
                <div class="form-group">
                    <label for="username" class="form-label">账号</label>
                    <input type="text" id="username" class="form-input" required>
                </div>
                
                <div class="form-group">
                    <label for="password" class="form-label">密码</label>
                    <input type="password" id="password" class="form-input" required>
                </div>
                
                <button type="submit" class="login-submit">登录</button>
            </form>
        </div>
    </div>

    <script>
        document.getElementById('login-form').addEventListener('submit', function(e) {
            e.preventDefault();
            
            const username = document.getElementById('username').value;
            const password = document.getElementById('password').value;
            const errorElement = document.getElementById('login-error');
            
            // 简单的登录验证（实际应用中应该更复杂）
            if (username === 'admin' && password === 'admin') {
                // 登录成功，设置认证状态并跳转
                localStorage.setItem('isAuthenticated', 'true');
                window.location.href = 'kehu.html';
            } else {
                // 登录失败，显示错误信息
                errorElement.textContent = '账号或密码错误，请使用admin/admin登录';
                errorElement.style.display = 'block';
            }
        });
    </script>
</body>
</html>